package cn.dubito.seller;

import com.hazelcast.core.HazelcastInstance;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.util.Map;

/**
 * @author liliang
 * @description:
 * @date 2018/5/28.
 */
@Component
public class HazelcastMapTest {

    @Autowired
    private HazelcastInstance hazelcastInstance;

//    @PostConstruct
    public void put() {
        Map<String,String> map = hazelcastInstance.getMap("dubito");
        map.put("name","dubito");
    }
}
